eth_getUserOperationByHash
This method is used to retrieve a user operation by its hash.
Parameters
hash
: A string representing the hash of the user operation to retrieve.
Returns
A JSON object with the following properties:
userOperation
: A JSON object representing the user operation.entryPoint
: A string representing the entry point of the user operation.blockNumber
: A string representing the block number the user operation was included in.blockHash
: A string representing the block hash the user operation was included in.transactionHash
: A string representing the transaction hash the user operation was included in.
note
The blockNumber
, blockHash
, and transactionHash
are only present if the user operation has been included in a block. If absent, this means the user operation is still pending.
Example Request
{
"jsonrpc":"2.0",
"id":1,
"method":"eth_getUserOperationByHash",
"params":["0x1234567890123456789012345678901234567890123456789012345678901234"]
}
Example Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"userOperation":{
"sender":"0x1234567890123456789012345678901234567890",
"nonce":"0x1",
"factory":"0x1234567890123456789012345678901234567890",
"factoryData":"0x123456",
"callData":"0x123456",
"callGasLimit":"0x123456",
"verificationGasLimit":"0x123456",
"preVerificationGas":"0x123456",
"maxFeePerGas":"0x123456",
"maxPriorityFeePerGas":"0x123456",
"paymaster":"0x1234567890123456789012345678901234567890",
"paymasterVerificationGasLimit":"0x123456",
"paymasterPostOpGasLimit":"0x123456",
"paymasterData":"0x123456",
"signature":"0x123456"
},
"entryPoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"blockNumber":"0x123456",
"blockHash":"0x1234567890123456789012345678901234567890123456789012345678901234",
"transactionHash":"0x1234567890123456789012345678901234567890123456789012345678901234"
}
}